// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.liuxinlong.modules.dao.HierarchyRelationDao;
import com.liuxinlong.modules.entity.HierarchyRelation;
import com.liuxinlong.modules.mapper.HierarchyRelationMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年2月22日
 */
@Service
public class HierarchyRelationDaoImpl extends ServiceImpl<HierarchyRelationMapper, HierarchyRelation>
		implements HierarchyRelationDao {

	@Override
	public List<HierarchyRelation> queryRelationList(Map<String, Object> param) {
		return baseMapper.queryRelationList(param);
	}

	@Override
	public void batchAddRelation(List<HierarchyRelation> relations) {
		baseMapper.batchAddRelation(relations);
	}

	@Override
	public void deleteRelation(String hierarchyId) {
		baseMapper.deleteRelation(hierarchyId);
	}

	@Override
	public void deleteRelationByRelation(String relationId) {
		baseMapper.deleteRelationByRelation(relationId);
	}

	@Override
	public Map<String, Map<String, String>> queryRelationMap(String hierarchyId) {
		return baseMapper.queryRelationMap(hierarchyId);
	}

}
